package com.xmfh.wemedia.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 回答表
 * </p>
 *
 * @author admin
 * @since 2022-04-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dd_answer")
public class DdAnswer implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 回答
     */
    @TableField("answer")
    private String answer;

    /**
     * 问题id
     */
    @TableField("question_id")
    private Integer questionId;

    /**
     * 父评论id
     */
    @TableField("parent_id")
    private Integer parentId;

    /**
     * 发布者
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 发布时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;


}
